-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MKLocalSearch to the Location pane #180
Conversation
|
||
/// Called if `MKLocalSearchCompleter` encounters an error | ||
func completer(_ completer: MKLocalSearchCompleter, didFailWithError error: Error) { | ||
print(error) |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MKLocalSearchCompleter
is an old delegate-based protocol, so I don't think it throws (I could be wrong, I don't spend much time with delegates any more) - it just sends the Error
to the didFailWithError
function. Suggestions to improve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No suggestion, I didn't know about MKLocalSearchCompleter
, it was just for know why you did that, thanks.
Really great improvement btw thank you ! |
Co-authored-by: Elliot Knight <[email protected]>
This is fantastic – thank you! |
MKLocalSearch
lookups and center the map on the results.latitude, longitude
) and center the map on those coordinates.Screen.Recording.2023-11-30.at.01.00.06.mp4